package com.example.reagent_management.ui.operatedialog.dialogs

import com.example.lib_base.base.BaseDBDialogFragment
import com.example.lib_base.base.DataBindingConfig
import com.example.reagent_management.R
import com.example.reagent_management.databinding.FragmentLockScreenBinding

class LockScreenFragment : BaseDBDialogFragment() {
    override fun getDataBindingConfig(): DataBindingConfig? {
        return DataBindingConfig(R.layout.fragment_lock_screen)
    }

    override fun initViewOrObserve() {
        setTransAndHeight(true, 1f)
        with(getBinding() as FragmentLockScreenBinding) {
//            lock.setHideListener(object : PagerLayout.IsBooleanHide {
//                override fun isHide(hide: Boolean) {
//                    if (hide) dismissAllowingStateLoss()
//                }
//            })
            lock.setHideListener {
                if (it) dismissAllowingStateLoss()
            }
        }
    }
}